package top.scsoul.voes.examination.entity;

import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;

import java.io.Serializable;

/**
 * (QuestionBank)实体类
 *
 * @author guolei
 * @since 2021-07-23 13:10:43
 */
@Data
public class QuestionBank implements Serializable {
    private static final long serialVersionUID = 880568579990584906L;
    /**
     * id
     */
    private Integer id;
    /**
     * 题目类型
     */
    @Range(min = 1, max = 5, message = "题型错误")
    private Integer type;
    /**
     * 科目
     */
    @Length(min = 1, max = 5, message = "科目错误")
    private Integer subject;
    /**
     * 关键字
     */
    @Length(min = 1, max = 100, message = "关键字长度在1-100之间")
    private String keyword;
    /**
     * 题目
     */
    @Length(min = 1, max = 50, message = "题目长度在1-500之间")
    private String question;

    private QuestionOption questionOption;

    private QuestionFillBlanks questionFillBlank;

    private QuestionJudgment questionJudgment;
}